import { S } from '../../s';
import { IPSSearchBarQuickSearch } from './ipssearch-bar-quick-search';
import { PSSysSearchBarItemImplBase } from './pssys-search-bar-item-impl-base';
import { IPSDEFSearchMode } from '../../dataentity/defield/ipsdefsearch-mode';

export class PSSysSearchBarQuickSearchImpl
  extends PSSysSearchBarItemImplBase
  implements IPSSearchBarQuickSearch
{
  protected psdefsearchmode: IPSDEFSearchMode;
  getPSDEFSearchMode(): IPSDEFSearchMode | null {
    return (
      this.psdefsearchmode ||
      (this.psdefsearchmode = this.fillObjectModel(
        S._1c4,
        this.M.getPSDEFSearchMode,
        S._318,
      ) as IPSDEFSearchMode)
    );
  }
  get cls(): string {
    return 'PSSysSearchBarQuickSearchImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._19e) return true;
    return super.instanceof(cls);
  }
}
